home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11025 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  686 b 

  1. Path: iz.maus.de!Torsten_Landschoff
  2. From: Torsten_Landschoff@iz.maus.de (Torsten Landschoff)
  3. Newsgroups: comp.lang.c++
  4. Subject: well-chosen overloading
  5. Message-ID: <199603110001.a35685@iz.maus.de>
  6. Date: Sun, 10 Mar 96 22:01:00 GMT
  7. References: <4hibv9$8bu@mcrware.microware.com>
  8. X-Gate: MausGate/News 1.25/ac3
  9. MIME-Version: 1.0
  10. Content-Type: text/plain; charset=ISO-8859-1
  11. Content-Transfer-Encoding: 8bit
  12.  
  13. -A41548@AC3
  14.  
  15. Hi James
  16.  
  17. JJ>for example, I've always wondered why the stream output operator 
  18. JJ>isn't += (-= for input);
  19.  
  20. That wasn't possible as the += operator is evaluated from right to left. For
  21. example cout += 5 += 11; would be the same as count += (5 += 11). 
  22.  
  23. cu
  24.     Torsten
  25.